<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Quiz
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: view.tpl 2010-07-02 17:53 ermek $
 * @author     Ermek
 */
?>
<script type="text/javascript">

en4.core.runonce.add(function(){
	$('inviterStep').value = 'getContacts';

  provider.set_enabled('Facebook', <?php echo ($this->form->_facebookKey) ? 1 : 0 ?>);
  provider.set_enabled('Twitter', <?php echo ($this->form->_twitterKey) ? 1 : 0 ?>);
  provider.set_enabled('LinkedIn', <?php echo ($this->form->_linkedinKey) ? 1 : 0 ?>);
  provider.set_enabled('GMail', <?php echo ($this->form->_gmailKey) ? 1 : 0 ?>);

  provider.fb_signup_url = <?php echo $this->jsonInline($this->url(array(), 'inviter_facebook_signup')); ?>;
  provider.oauth_url = <?php echo $this->jsonInline($this->url(array('module' => 'inviter', 'controller' => 'oauth', 'action' => 'request', 'signup' => 1, 'format' => 'smoothbox'), 'default')); ?>;
});

function skipFormInviter()
{
  document.getElementById("skip").value = "skipFormInviter";
  document.getElementById("invite_friends").submit();
}
</script>

<div class='layout_middle'>

  <div style="padding: 10px; padding-top: 5px; width: 750px">
    <?php echo $this->form->render($this)?>
  </div>
  
</div>

<div id='default_provider_list' style='display:none;'></div>